//
//  JKRefreshHeader.m
//  JKRefreshHeader
//
//  Created by 王冲 on 2019/6/17.
//  Copyright © 2019 JK科技有限公司. All rights reserved.
//

#import "JKRefreshHeader.h"

@implementation JKRefreshHeader

-(instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    
    if (self) {
        
        // 设置状态文字颜色
        self.stateLabel.textColor = [UIColor blackColor];
        // 设置状态文字大小
        self.stateLabel.font = [UIFont systemFontOfSize:14.0f];
        
        [self setTitle:@"下拉刷新..." forState:MJRefreshStateIdle];
        [self setTitle:@"松开立即刷新..." forState:MJRefreshStatePulling];
        [self setTitle:@"正在刷新..." forState:MJRefreshStateRefreshing];
        // 隐藏时间
        self.lastUpdatedTimeLabel.hidden = YES;
        // 自动切换透明度
        // self.automaticallyChangeAlpha = YES;
    }
    
    return self;
}


@end
